package cn.itcast.ssh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import cn.itcast.ssh.dao.OrderDao;
import cn.itcast.ssh.entity.Order;
import cn.itcast.ssh.service.OrderService;

@Service
@Transactional(readOnly = false, isolation = Isolation.DEFAULT, propagation = Propagation.SUPPORTS)
public class OrderServiceImpl implements OrderService {
	@Autowired
	private OrderDao orderDao;

	@Override
	public List<Order> findAll() {
		List<Order> list = orderDao.queryAll();
		return list;
	}

}
